package com.xjoyt.pay.share.interfaces;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.share.po.FileObejct;
import com.xjoyt.pay.share.vo.FileObjecResult;
import com.xjoyt.pay.share.vo.FileObjectParam;

public interface FileObejctContract {

	/**
	 * 保存
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<FileObejct> save(FileObejct param);

	/**
	 * 批量保存
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "saveAllUrl", method = RequestMethod.POST)
	ExecuteResult<?> saveAllUrl(List<FileObejct> param);

	/**
	 * 获取图片url
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "findAllByKeysAndProperties", method = RequestMethod.POST)
	List<FileObjecResult> findAllByKeysAndProperties(FileObjectParam param);
}
